Skip to content

Conversation

@kuyugama
Copy link

@kuyugama kuyugama commented Jan 1, 2026

Summary

I noticed that _CachedRequest at starlette.middleware.base had uncomplete stream() generator caching (_wrapped_rc_stream), so I fixed that

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)

  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.

  • I've updated the documentation accordingly.

@kuyugama kuyugama force-pushed the kh/fix/CachedRequest-stream-caching branch from ec38679 to 6b279e1 Compare January 1, 2026 21:41
@kuyugama kuyugama force-pushed the kh/fix/CachedRequest-stream-caching branch from 6b279e1 to d26acf4 Compare January 1, 2026 21:47
@Kludex
Copy link
Owner

Kludex commented Jan 10, 2026

Can you give me an MRE that shows the problem?

@kuyugama
Copy link
Author

I'm going to bed rn, so a bit later. To be clear I was just reading source code and noticed it, so I don't have MRE prepared.

@kuyugama
Copy link
Author

It seems, that there's no problem with this, so I am closing this pr

@kuyugama kuyugama closed this Jan 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants